import vue from "vue"; //导入 Vue 模块
import vueRouter from "vue-router"; // 第二步：导入 VueRouter 模块
import User from "@/views/User";
import NotFound from "@/views/404"
import Home from "@/views/Home";

vue.use(vueRouter);

const routes = [
    {
      path: "/",
      component: Home
    },

    {
        path:"/user",
        component:User
    },

    {
        path: "*",
        component: NotFound
    }

]

const router = new vueRouter({

    routes:routes

});

export default router;